<template>
	<u-navbar :title="title" :title-width="titleWidth" :customBack="customBack" :background="{ 'z-index': '99999', background: '#fff' }" title-color="#222"
		back-icon-color="#222" :is-back="isBack" :exit="exit">
		<view class="slot-wrap" slot="right">
			
		</view>
	</u-navbar>
</template>

<script>
	export default {
		props: {
			//navbar标题宽度
			titleWidth: {
				type: [Number, String],
				default: '500'
			},
			// 是否退出应用
			exit: {
				type: [Boolean, String],
				default: false
			},
			// 是否显示返回按钮back
			isBack: {
				type: [Boolean, String],
				default: false
			},
			// 传入的标题
			title: {
				type: String,
				default: '膜匠'
			},
			// 自定义返回逻辑
			customBack: {
				type: Function,
				default: null
			},
		},
		data() {
			return {
		
			};
		},
		methods: {
			
		}
	};
</script>

<style lang="scss" scoped>
	.slot-wrap {
		display: flex;
		align-items: center;
		padding: 0 30rpx;
	}
</style>